
<%@page import="java.util.ArrayList"%>
<%@page import="entity.AppBorrowRoom"%>
<%@page import="com.mysql.jdbc.MySQLConnection"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="sdmenu/stmenu.js"></script>
<style type="text/css">
<!--
.style1 {
	color: #FF0000;
	font-size: 18px;
	font-weight: bold;
}
-->
</style>
<% AppBorrowRoom abr= new AppBorrowRoom();
    abr.setIdABR("2");
    
    abr.setHide("1");
    boolean abrs=abr.select();
    System.out.println("");
%>
</head>

<body>
<div id="container">

  <div id="header">
    <%@include file="/includes/header.jsp" %>


  </div>
  <div id="center">
    <p>&nbsp;</p>
    <table width="200" border="1">
        <% for(int j=0;j<2;j++){ %>
      <tr>
        <td><%=abr.getUser().getName() %></td>
        <td><%=abr.getUser().getTendvpt() %></td>
        <td><%=abr.getUser().getDvct() %></td>
        <td><%=abr.getContent() %>&nbsp;</td>
        <td>
            <%for(int i=0;i<abr.getRooms().size();i++){ %>
            <table width="200" border="1">
          <tr>
              <td><%=abr.getRooms().get(i).getDate() %></td>
            <td><%=abr.getRooms().get(i).getRoomName() %></td>
            <td><%=abr.getRooms().get(i).getPeriod() %></td>
          </tr>
        </table>
            <% } %>
        </td>
        
      </tr>
        <%} %>
    </table>
    <p>&nbsp;</p>
  </div>
  <div id="footer">
    <%@include file="/includes/footer.jsp" %>
  </div>
</div>
</body>
</html>
